package registnet.base;

import java.util.ListIterator;
import java.util.Vector;

/**
 * Default implementation of a plan of coursework.
 */
public class DefaultPlanOfCourseWork extends AbstractPlanOfCourseWork {
	
	/**
	 * Default constructor which creates an "empty" plan of coursework.
	 */
	public DefaultPlanOfCourseWork(){
		studentNumber = "";
		curriculum = null;
		courses = new Vector<ICourse>();
	}

	/**
	 * Prints a basic description of the curriculum.
	 */
	public void print(){
		System.out.println("[check] planOfCourseWork: "+studentNumber+" "+courses.size());
		ListIterator<ICourse> li = courses.listIterator();
		while(li.hasNext()){
			ICourse course = li.next();
			System.out.println("[check] courseWork: "+course.getCourseCode()+" "+course.getYear()+" "+course.getSemester());
		}
	}
	
	
}
